<div id="pop_user_add">
<form action="permission/modify.html" method="post" accept-charset="utf-8" id='form'>
<div class="popup_bg"></div>
<iframe class="popup_cover"></iframe>
<div class="popup_box center_fix">
	<div class="popup_box_t"></div>
	<div class="popup_box_c">
		<h3 class="popup_box_title">添加运营账户</h3>
		<div class="select_box">
			<ul class="list">
			    {foreach $acced as $val}
				    <li>{$val.name}</li>
				    <input type="checkbox" name="left[]" value="{$val.id}"  style="display:none;">
				{/foreach}
			</ul>
			<div class="ico">
				<div></div>
				<p>分配权限给</p>
			</div>
			<ul class="list">
				{foreach $acced as $val}
				    <li>{$val.name}</li>
				    <input type="checkbox" name="right[]" value="{$val.id}"  style="display:none;">
				{/foreach}
			</ul>
		</div>
		<div class="popup_box_btn"><a href="#" class="btn5">确定</a><a href="#" class="btn2 cancel">取消</a></div>
	</div>
	<div class="popup_box_b"></div>
</div>
</form>
</div>
<script type="text/javascript" charset="utf-8">
    $('.cancel').click(function(){
        $('#pop_user_add').remove();
        return false;
    });
    
    $('.btn5').click(function(){
        $('#form').submit();
        return false;
    });
    
    $(".select_box .list li").toggle(    	
		function(){
		var input = $(this).next();    
		$(this).addClass("select");
		input.attr('checked', true);
		},
		function(){
		var input = $(this).next();    
		input.attr('checked', false);
		$(this).removeClass("select");
	});
    
</script>